package com.jeespring.chapter01.section05;

class MyThread02 extends Thread{

	public void run() {
		try {
			System.out.println("run - threadName = " + this.currentThread().getName() + " begin = " + System.currentTimeMillis());
			Thread.sleep(2000);
			System.out.println("run - threadName = " + this.currentThread().getName() + " end = " + System.currentTimeMillis());
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
public class Thread02{
	public static void main(String[] args) {
		MyThread02 myThread = new MyThread02();
		System.out.println("begin=" + System.currentTimeMillis());
		myThread.start();
		System.out.println("end=" + System.currentTimeMillis());
	}
}
